namespace Xmef.Serializer.Internal
{
    using System;
    using System.Xml.Serialization;
    using Xmef.Serializer;

    [Serializable]
    internal class XmlTypeSerializer : XmlTypeSettings
    {
        internal XmlTypeSerializer(Type type) : base(type)
        {
        }

        internal override IXmlFormatAttributesInternal InternalAttributes
        {
            get
            {
                return null;
            }
        }

        internal override XmlSerializer InternalSerializer
        {
            get
            {
                IXmlRuntimeSerializerInternal instance = this;
                if (instance != null)
                {
                    return new XmlSerializer(instance.RuntimeType);
                }
                return null;
            }
        }
    }
}

